package shopping.bean;

import java.math.BigDecimal;
import java.util.Date;

public class OrderAndOrderItem {
//    订单
    private String order_id;
    private Date create_time;
    private BigDecimal price;
    // 0未出库，1已入货
    private Integer status;
    private Integer admin_id;
//    订单详细信息
    private String name;
    private Integer count;

    private BigDecimal total_price;

    @Override
    public String toString() {
        return "OrderAndOrderItem{" +
                "order_id='" + order_id + '\'' +
                ", create_time=" + create_time +
                ", price=" + price +
                ", status=" + status +
                ", admin_id=" + admin_id +
                ", name='" + name + '\'' +
                ", count=" + count +
                ", total_price=" + total_price +
                ", adminname='" + adminname + '\'' +
                ", email='" + email + '\'' +
                '}';
    }

    public String getOrder_id() {
        return order_id;
    }

    public void setOrder_id(String order_id) {
        this.order_id = order_id;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getAdmin_id() {
        return admin_id;
    }

    public void setAdmin_id(Integer admin_id) {
        this.admin_id = admin_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public BigDecimal getTotal_price() {
        return total_price;
    }

    public void setTotal_price(BigDecimal total_price) {
        this.total_price = total_price;
    }

    public String getAdminname() {
        return adminname;
    }

    public void setAdminname(String adminname) {
        this.adminname = adminname;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public OrderAndOrderItem(String order_id, Date create_time, BigDecimal price, Integer status, Integer admin_id, String name, Integer count, BigDecimal total_price, String adminname, String email) {
        this.order_id = order_id;
        this.create_time = create_time;
        this.price = price;
        this.status = status;
        this.admin_id = admin_id;
        this.name = name;
        this.count = count;
        this.total_price = total_price;
        this.adminname = adminname;
        this.email = email;
    }

    public OrderAndOrderItem() {
    }

    //    订单所对应的用户信息
    private String adminname;
    private String email;


}
